-- GENERATED SPELL FOR [Spotter Klemmy] --


function spell0_10805(pUnit, Event) --@Advanced Target Dummy - Event 003,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(19723,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_10805', 1, 1)
end

function spell1_10805(pUnit, Event) --@Target Dummy - Event 001,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(18634,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_10805', 1, 1)
end

function spell2_10805(pUnit, Event) --@Target Dummy - Event 002,n/a--
pUnit:FullCastSpellOnTarget(18907,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10805', 624, 1)
end

function Sorts_10805(pUnit, Event)
local choix_sorts_10805 = math.random(0, 2)
if choix_sorts_10805 == 0 then
pUnit:RegisterEvent('spell0_10805', 1, 1)
end
if choix_sorts_10805 == 1 then
pUnit:RegisterEvent('spell1_10805', 1, 1)
end
if choix_sorts_10805 == 2 then
pUnit:RegisterEvent('spell2_10805', 1, 1)
end
end

function mob10805_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10805', math.random(1500, 3000), 1)
end

function mob10805_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10805_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10805_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10805, 1, 'mob10805_Action')
RegisterUnitEvent(10805, 2, 'mob10805_Leave')
RegisterUnitEvent(10805, 3, 'mob10805_Kill')
RegisterUnitEvent(10805, 4, 'mob10805_Die')
